]> dgit.raspbian.org Git - gnome-shell.git/commit
status/backlight: Do only one dbus call per local change
authorBarnabás Pőcze <pobrn@protonmail.com>
Tue, 16 Jan 2024 22:41:24 +0000 (23:41 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 16 Jan 2024 23:30:42 +0000 (23:30 +0000)
commitc227d0b38e69e4e9d628264a6e8644bd148d7061
treea9e31d1536e7c4782997636568fbee8dfb200e64
parentbe944ff2dcc2bbe25152c0736c20d8045a5581e9
status/backlight: Do only one dbus call per local change

The values of the two control widgets are syncronized, meaning
that both emit signals when the local value changes, regardless
which one is visible and is actually used by the user.

This is not ideal because it leads to two dbus calls
per local change. To alleviate this, only consider
changes from the widget that is visible.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3086>
js/ui/status/backlight.js